package com.eryos.gwt.mailmodule.client;

import com.eryos.gwt.mailmodule.shared.CaptchaCheck;
import com.eryos.gwt.mailmodule.shared.MailMessage;
import com.eryos.gwt.mailmodule.shared.exception.InvalidCaptchaException;
import com.eryos.gwt.mailmodule.shared.exception.InvalidMailException;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("mailService")
public interface MailService extends RemoteService {
	Boolean sendMailWithCaptcha(MailMessage msg, CaptchaCheck captcha) throws InvalidCaptchaException, InvalidMailException;
}
